{% extends 'bootstrap-modal-layout.html.twig' %}

{% set custom = 'app/js/yangfeiyue/index.js' %}
{% do script(['libs/jquery-validation.js', 'app/js/check-password/index.js'])%}
{% block title %}{{'admin.course_manage.manage.auth_user'|trans}}{% endblock %}

{% block body %}
  <form id="delete-form" action="{{path('admin_v2_check_password')}}">
    <div class="row form-group">
      <div class="col-md-2 control-label">
        <label for="title">{{'admin.course_manage.manage.user_passwd'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="password" name="password" class="form-control" placeholder="{{'admin.course_manage.manage.input_passwd_placeholder'|trans}}">
      </div>
    </div>
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
  </form>
  <div id="delete-course-progress" class="delete-course-progress" style="display:none;">
    <div class="progress progress-striped active">
      <div class="progress-bar progress-bar-success" style="width: 0%"></div>
    </div>
    <div class="text-success progress-text"></div>
  </div>
{% endblock %}

{% block footer %}
  <button id="delete-btn" data-loading-text="{{'form.btn.submit.submiting'|trans}}" type="button" class="btn btn-primary pull-right js-delete-btn" data-toggle="form-submit" data-target="#delete-form" data-callback="{{ jsonp }}">{{'form.btn.submit'|trans}}</button>
  <button type="button" class="btn btn-link pull-right btn-closed" data-dismiss="modal">{{'form.btn.cancel'|trans}}</button>
{% endblock %}

